<?php

namespace app\member\controller;

use think\Controller;
use think\Db;

class Warehouse extends Common{
    function __construct(){
        parent::__construct();
        $this->assign('_nav',json_encode(config("navs.2.children"),JSON_UNESCAPED_UNICODE));
    }
    function index(){
        return view();
    }

    // 好友账号库
    public function friends(){
        // 获取会员信息
        $userinfo = $this->user;
        // 获取微信账号
        $list = Db::name('software')
                ->alias('s')
                ->join('social sl','sl.soft_id = s.id','RIGHT')
                ->field('sl.*,s.number snumber,s.name sname')
                ->where('s.member_id',$userinfo['id'])
                ->select();

        // 获取账号对应的好友
        $this->assign('list',$list);
    	return view();
    }
    


    // 今日概况
    public function today(){
    	return view();
    }
    


    // 微信号概况
    public function weixin(){
    	return view();
    }
}
